<?php
include_once 'lib/Http/Request.php';
include_once 'lib/Http/Response.php';
include_once 'lib/Http/ContentType.php';
class Index{


    public function __construct()
    {

    }

    public function hello(Request $request, Response $response,string $name){
        $session = $request->getSession();
        if ($session->getAttribute("data") == null){
            $session->setAttribute("data", date("Y-m-d H:i:s"));
        }
        return "hello name " . $session->getSessionId() . " " . $name . " ";
    }

}